package edu.umd.mhealth.oauth;

import org.scribe.builder.api.DefaultApi10a;
import org.scribe.model.Token;

public class WithingsApi extends DefaultApi10a {
	private static final String AUTHORIZATION_URL = "http://www.fitbit.com/oauth/authorize?oauth_token=";
	  
	  @Override
	  public String getAccessTokenEndpoint()
	  {
	    return "http://api.fitbit.com/oauth/access_token";
	  }

	  @Override
	  public String getRequestTokenEndpoint()
	  {
	    return "http://api.fitbit.com/oauth/request_token";
	  }
	  
	  @Override
	  public String getAuthorizationUrl(Token requestToken)
	  {
		 return AUTHORIZATION_URL + requestToken.getToken();
	  }
}
